Skip to content

Conversation

lucasdicioccio
Copy link

@lucasdicioccio lucasdicioccio commented Apr 22, 2017

This experiment goes with haskell-github-trust/ekg-core#17 and haskell-github-trust/ekg-json#6 .

FizzBuzz in EKG:
screen shot 2017-04-22 at 17 05 34

event <- getDistribution "runtime" handle
handle <- forkServer "0.0.0.0" 8000
baseCounter <- getCounter "iterations" [] handle
fizzCounter <- getCounter "iterations" ["dim0:fizz"] handle
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding the comment I gave on the pull request in ekg-core. I think its here I'd rather see that the dimension names don't have to be repeated (albeit that does imply they need to be positional).

label <- getLabel "args" handle
event <- getDistribution "runtime" handle
handle <- forkServer "0.0.0.0" 8000
baseCounter <- getCounter "iterations" [] handle
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it makes sense for a counter to be accessed with only some dimensions. What does it mean to increment a counter that has been given e.g. a URL and a HTTP status code dimension without providing values for those when incrementing it?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For example, what would it mean to sum up all the values in a metric if you have "global" counts and indexed counts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants